-- GENERATED SPELL FOR [Amani'shi Trainer] --


function spell0_23774(pUnit, Event) --@Incite Rage,n/a--
pUnit:FullCastSpellOnTarget(43292,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23774', 556, 1)
end

function spell1_23774(pUnit, Event) --@Sleep,n/a--
pUnit:FullCastSpellOnTarget(20989,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23774', 10348, 1)
end

function Sorts_23774(pUnit, Event)
local choix_sorts_23774 = math.random(0, 1)
if choix_sorts_23774 == 0 then
pUnit:RegisterEvent('spell0_23774', 1, 1)
end
if choix_sorts_23774 == 1 then
pUnit:RegisterEvent('spell1_23774', 1, 1)
end
end

function mob23774_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23774', math.random(1500, 3000), 1)
end

function mob23774_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23774_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23774_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23774, 1, 'mob23774_Action')
RegisterUnitEvent(23774, 2, 'mob23774_Leave')
RegisterUnitEvent(23774, 3, 'mob23774_Kill')
RegisterUnitEvent(23774, 4, 'mob23774_Die')
